<%@page import="dk.itu.pam.model.User"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Mail page</title>
</head>
<body>

	<% HttpSession s = request.getSession();%>
	<% User user = (User) s.getAttribute("currentUser"); %>
	<% System.out.println(user.getName()); %>
	
<pre>
Dear <% out.println(user.getName()); %>

Thank you for signing up as a La Pizzaria webshop user!

Your personal key is: <% out.println(("" + user.getEmail().hashCode()).substring(1,5));%>
To complete your registration, please enter your personal key <a href="submit_code.jsp">here</a>.

Afterwards you will be able to pizza shop amok in the webshop!

Kind regards,
La Pizzaria

</pre>
</body>
</html>